package com.yaha.controler;

import com.yaha.controler.utils.MyLog;

import android.app.Activity;
import android.os.Bundle;
import android.widget.FrameLayout;

/**
 * <功能描述>所有Activity的基类，封装了Activity的生命周期方法
 * 
 * @author Frewen.W
 * @version [版本号, 2015-3-24]
 * @since [产品/模块版本]
 */
public class BaseActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		MyLog.i(this.getClass().getSimpleName(), "onCreate-->Begin");
		super.onCreate(savedInstanceState);
	}

	@Override
	protected void onStart() {
		MyLog.i(this.getClass().getSimpleName(), "onStart-->Begin");
		super.onStart();
	}

	@Override
	protected void onRestart() {
		MyLog.i(this.getClass().getSimpleName(), "onRestart-->Begin");
		super.onRestart();
	}

	@Override
	protected void onResume() {
		MyLog.i(this.getClass().getSimpleName(), "onResume-->Begin");
		super.onResume();
	}

	@Override
	protected void onPause() {
		MyLog.i(this.getClass().getSimpleName(), "onPause-->Begin");
		super.onPause();
	}

	@Override
	protected void onStop() {
		MyLog.i(this.getClass().getSimpleName(), "onStop-->Begin");
		super.onStop();
	}

	@Override
	protected void onDestroy() {
		MyLog.i(this.getClass().getSimpleName(), "onDestroy-->Begin");
		super.onDestroy();
	}

	@Override
	public void onBackPressed() {
		MyLog.i(this.getClass().getSimpleName(), "onBackPressed-->Begin");
		super.onBackPressed();
	}

}
